package config;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.HandlerInterceptor;

import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.logging.LogRecord;

public class EventInterceptor implements HandlerInterceptor {//拦截器
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        System.out.println("拦截器");
        String s=request.getHeader("token");
        System.out.println(s);
        return true;
    }
}
